<?php
defined('BASE_PATH') || define('BASE_PATH', getenv('BASE_PATH') ?: realpath(dirname(__FILE__) . '/../..'));
defined('APP_PATH') || define('APP_PATH', BASE_PATH . '/app');
$config=new \Phalcon\Config([
    'application' => [
        'appDir'         => APP_PATH.'/',
        'controllersDir'         => APP_PATH.'/controllers/',
        'modelsDir'         => APP_PATH.'/models/',
        'migrationsDir'         => APP_PATH.'/migrations/',
        'viewsDir'         => APP_PATH.'/views/',
        'pluginsDir'         => APP_PATH.'/plugins/',
        'libraryDir'         => APP_PATH.'/library/',
        'cacheDir'         => BASE_PATH.'/cache/',
        'baseUri'         => '/',
        'handlers'         => BASE_PATH.'/library/handers',
        'services'         => BASE_PATH.'/library/services',
    ]
]);

return $config->merge(new Phalcon\Config\Adapter\Ini("../config.ini"));
